import request from '@/utils/request2'
import request1 from '@/utils/request'
import { getToken } from '@/utils/auth'

// 查询列表详细
export function queryFileList(query) {
  return request({
    url: '/FileOperation/queryFileList',
    method: 'post',
    data: query,
  })
}
// 删除详细
export function deleteFile(query) {
  return request({
    url: '/FileOperation/deleteFile',
    method: 'post',
    data: query,
  })
}
// 下载文件
export function downloadFileByFdsf(query) {
  return request({
    url: '/FileOperation/downloadFileByFdsf',
    method: 'post',
    data: query,
    responseType: "blob"
  })
}
//获取tree数据
export function getFileTreeList(query) {
  return request({
    url: '/FileOperation/getFileTreeList',
    method: 'get',
  })
}
//获取tree+Table数据
export function getFileTreeTableList(query) {
  return request({
    url: '/FileOperation/getFileListByTreeId',
    method: 'get',
    params:query,
  })
}
//新增tree节点菜单
export function addNodeFileTree(query) {
  return request({
    url: '/FileOperation/addFileTree',
    method: 'post',
    data:query,
  })
}
//删除tree节点菜单
export function delNodeFileTree(query) {
  return request({
    url: '/FileOperation/deleteFileTree',
    method: 'get',
    params:query,
  })
}
//删除tree节点菜单
export function editNodeFileTree(query) {
  return request({
    url: '/FileOperation/updateFileTreeTitle',
    method: 'post',
    data:query,
  })
}
//im通讯人员信息
export function getuserMessage(query) {
  return request1({
    url: '/wsMessage/getMessageGroupList',
    method: 'get',
    params:query,
  })
}
//获取聊天内容
export function receiveMessage(query) {
  return request1({
    url: '/wsMessage/receiveMessage',
    method: 'post',
    data:query,
  })
}


